package gao.xiaolei.dto;

import gao.xiaolei.entity.Classes;
import gao.xiaolei.entity.ClassesBase;
import lombok.Data;

import java.util.List;

@Data
public class ClassesDto extends ClassesBase {

    protected String leaderName;//负责人的昵称

    protected String createrName;//创建人的名称

    protected List<ClassesMemberDto> members;//班级的人员信息列表

    public ClassesDto(Classes classes, String createrName, String leaderName , List<ClassesMemberDto> members){
        super(classes.getId(),classes.getName(),classes.getStage(),classes.getCreater(),classes.getLeader(),classes.getCreateDate(),classes.getDescribe(),classes.isAutomatic());
        this.leaderName=leaderName;
        this.createrName=createrName;
        this.members=members;
    }

    public ClassesDto() {
    }
}
